/**
 * 后台用户列表相关接口
 */

// 引入Router
const Router = require("express");
const router = new Router();

// 引入业务逻辑
const userDis = require("../../../business/admin/userDis");

// 获取用户数据
router.get("/all", (req, res) => {
  userDis.allUser(req, res);
})

// 禁用或解封用户
router.post("/banned", (req, res) => {
  userDis.bannedUser(req, res);
})

// 单独查询用户
router.get("/find_user", (req, res) => {
    userDis.findUser(req, res);
})


module.exports = () => {
  return router;
}